using System;
using Deepcode.Flux.Core.Extensions;
using Deepcode.Flux.Core.Extensions.Codons;

namespace Deepcode.Flux.Core.Codons.SimpleCodons
{
	/// <summary>
	/// Simplest form of codon tag. Represented in the addin xml definition as
	/// Integer id="id" value="the int value to store"
	/// </summary>
	[XmlCodonName("Integer")]
	public class IntegerCodon : AbstractCodon
	{
		[XmlCodonAttribute("value")]
		private int value = 0;

		public override object BuildItem(object owner, System.Collections.ArrayList subItems)
		{
			return value;
		}

	}
}
